package com.thor.palmmall.rest.order.converter;

import org.springframework.core.convert.converter.Converter;

import com.thor.palmmall.rest.order.AOrderConditionFilter;
import com.thor.palmmall.spi.order.SOrderConditionFilter;

public class SOrderConditionFilterConverter  implements Converter<AOrderConditionFilter,SOrderConditionFilter>{
	private static SOrderConditionFilterConverter instance;
	public static SOrderConditionFilterConverter getInstance() {
		if (instance == null)
			instance = new SOrderConditionFilterConverter();
		return instance;
	}
	@Override
	public SOrderConditionFilter convert(AOrderConditionFilter source) {
		SOrderConditionFilter target = new SOrderConditionFilter();
		target.setStoreUuid(source.getStoreUuid());
		target.setTenantUuid(source.getTenantUuid());
		target.setBillNumber(source.getBillNumber());
		target.setKeyword(source.getKeyword());
		target.setCustomerTelephone(source.getCustomerTelephone());
		target.setCustomerName(source.getCustomerName());
		target.setContracts(source.getContracts());
		target.setCreatorCode(source.getCreatorCode());
		return target;
	}
}
